package org.neuedu.chapter06_0622.demo10;

public class Circle {
    double radius;

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double findArea() {
        return Math.PI * radius * radius;
    }

    public static void main(String[] args) {
        Circle circle = new Circle();
        circle.setRadius(5);
        double area = circle.findArea();
        System.out.println(area);
        System.out.println();
    }
}
